package com.keke;

import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.model.Info;
import com.github.dockerjava.core.DefaultDockerClientConfig;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
//        DockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()
//                .withDockerHost("tcp://127.0.0.1:2375")
//                .withDockerTlsVerify(false).build();
//        DockerClient dockerClient = DockerClientBuilder.getInstance(config).build();
//
//        Info info = dockerClient.infoCmd().exec();
//        System.out.println(info);
        SpringApplication.run(Application.class, args);
    }
}
